(function(){
	angular.module('app').factory('shopControllerComponentService', shopControllerComponentService);

	shopControllerComponentService.$inject = ['util','$q'];

	function shopControllerComponentService(util,$q){

		return {
			get:_get
		}

		function _get(json){

			var defer = $q.defer();

			util.$get({
				url:'/marketconditions/shop/getShops.htm',
				data:json
			}).then(function(resp){

				defer.resolve(resp.value);

			},function(err){

				defer.reject(err);
			});


			return defer.promise;


		}

	}
})();